import fetch from '../config/fetch'
import {getStore} from '../config/mUtils'

/**
 * 获取个人信息
 */
export const getUserInfo = () => fetch('/hc/sell/all', {},'POST');

/**
 * 登录
 */
export const login = (loginName , password) => fetch('/Lepv_system/api/login', {loginName , password},'POST');
/**
 * 终端电站列表
 */
export const stationList = (email , offset , rows) => fetch('/Lepv_system/api/stationList', {email , offset , rows},'POST');
/**
 * 安装商电站列表
 */
export const pageStation = (email , offset , rows) => fetch('/Lepv_system/api/pageStation', {email , offset , rows},'POST');
/**
 * 详情
 */
export const overview = (email , id) => fetch('/Lepv_system/api/overview', {email , id},'POST');
/**
 * 图表
 */
export const overview2 = (email , id , chartType , type) => fetch('/Lepv_system/api/overview2', {email , id , chartType , type},'POST');
